{% extends "account/base.html" %}

{% load css_class %}
{% load i18n %}
{% load account socialaccount %}

{% block head-title %}{% trans "Log in" %} - {% endblock %}

{% block content %}
<div class="central-form">
    <h1 class="text-center">{% trans "Password Reset" %}</h1>
    <hr>
    {% if user.is_authenticated %}
    {% include "account/snippets/already_logged_in.html" %}
    {% endif %}

    <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>

    <form method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
        {% csrf_token %}
        {% include 'form-fields.html' %}
        <p><button class="btn btn-primary btn-block" type="submit">{% trans 'Reset My Password' %}</button></p>
        {% if redirect_field_value %}
            <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
        {% endif %}
    </form>
    <p>{% trans 'Please contact us if you have any trouble resetting your password' %}</p>
</div>
{% endblock %}

